package org.liukai.ems.dao;

import org.liukai.ems.entity.po.User;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

/**
 * @create UserDao.java 9:31
 * 
 * @author liukai
 * @date 2015/12/18
 */
@Repository
public class UserDao extends SqlSessionDaoSupport {
    public User queryUserByUserName(String username) {
        return getSqlSession().selectOne("user.queryUserByUserName", username);//第一个参数等于User.xml中的namespace。id
    }
}
